package com.g5kj.coupon.ssm.service.impl;

import com.g5kj.coupon.ssm.common.CheckUtil;
import com.g5kj.coupon.ssm.common.Result;
import com.g5kj.coupon.ssm.dao.ArticleTagDao;
import com.g5kj.coupon.ssm.model.TagEntity;
import com.g5kj.coupon.ssm.service.ArticleTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 文章标签.
 */

@Service
public class ArticleTagServiceImpl implements ArticleTagService {

    @Autowired
    ArticleTagDao articleTagDao;

    @Override
    public int inster(TagEntity entity) {
        return 0;
    }

    @Override
    public int delete(int Id) {
        return 0;
    }

    @Override
    public int update(TagEntity entity) {
        return 0;
    }

    @Override
    public Result list() {
       List list= articleTagDao.listTag();
       return CheckUtil.isNoEmpty(list)? Result.ok(list):Result.fail("查无数据");
    }
}
